/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.istep.common.persistence.DataEntity;

/**
 * 子网管理Entity
 * @author dh
 * @version 2017-03-25
 */
public class SceneSubnet extends DataEntity<SceneSubnet> {
	
	private static final long serialVersionUID = 1L;
	private String subnetName;		// 子网名称
	private String networkId;		// 网络id
	private String ipVersion;		// IP版本
	private String projectId;		// 项目id
	private String tenantId;		// 租户id
	private String gatewayIp;		// 网关IP
	private String cidr;		// 子网CIDR
	private String subnetpoolId;		// 子网池id


	private String networkName;		// 网络id
	private String routerId;		// 路由id

	public SceneSubnet() {
		super();
	}

	public SceneSubnet(String id){
		super(id);
	}

	@Length(min=1, max=64, message="子网名称长度必须介于 1 和 64 之间")
	public String getSubnetName() {
		return subnetName;
	}

	public void setSubnetName(String subnetName) {
		this.subnetName = subnetName;
	}
	
	@Length(min=0, max=64, message="网络id长度必须介于 0 和 64 之间")
	public String getNetworkId() {
		return networkId;
	}

	public void setNetworkId(String networkId) {
		this.networkId = networkId;
	}
	
	@Length(min=0, max=4, message="IP版本长度必须介于 0 和 4 之间")
	public String getIpVersion() {
		return ipVersion;
	}

	public void setIpVersion(String ipVersion) {
		this.ipVersion = ipVersion;
	}
	
	@Length(min=0, max=64, message="项目id长度必须介于 0 和 64 之间")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	
	@Length(min=0, max=64, message="租户id长度必须介于 0 和 64 之间")
	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}
	
	@Length(min=0, max=64, message="网关IP长度必须介于 0 和 64 之间")
	public String getGatewayIp() {
		return gatewayIp;
	}

	public void setGatewayIp(String gatewayIp) {
		this.gatewayIp = gatewayIp;
	}
	
	@Length(min=0, max=64, message="子网CIDR长度必须介于 0 和 64 之间")
	public String getCidr() {
		return cidr;
	}

	public void setCidr(String cidr) {
		this.cidr = cidr;
	}
	
	@Length(min=0, max=64, message="子网池id长度必须介于 0 和 64 之间")
	public String getSubnetpoolId() {
		return subnetpoolId;
	}

	public void setSubnetpoolId(String subnetpoolId) {
		this.subnetpoolId = subnetpoolId;
	}

	public String getNetworkName() {
		return networkName;
	}

	public void setNetworkName(String networkName) {
		this.networkName = networkName;
	}

	public String getRouterId() {
		return routerId;
	}

	public void setRouterId(String routerId) {
		this.routerId = routerId;
	}
}